using System;
using System.Collections.Generic;

namespace Model.Database
{
    [Serializable]
    public partial class Department
    {
        public Department()
        {
            this.Roles = new List<Role>();
            this.UserInfoes = new List<UserInfo>();
        }

        public string DepartmentId { get; set; }
        public string ParentId { get; set; }
        public string DepartmentName { get; set; }
        public string Description { get; set; }
        public Nullable<int> Sort { get; set; }
        public Nullable<System.DateTime> AddTime { get; set; }
        public Nullable<System.DateTime> ModifyTime { get; set; }
        public virtual ICollection<Role> Roles { get; set; }
        public virtual ICollection<UserInfo> UserInfoes { get; set; }
    }
}
